<?php
declare (strict_types=1);

namespace app\common\model;

class UserNotify extends Base
{
    protected function user()
    {
        return $this->hasOne(User::class, 'id', 'uid')->field('id,code,nickname,mobile');
    }

    protected function getTypeAttr($value)
    {
        return getNotifyType($value);
    }
}